package com.itheima;

import java.util.TreeSet;

/*
itheima, chinaunix, itpub, csdn, 51cto, iteye...
 */
public class Demo2 {
    public static void main(String[] args) {
        TreeSet <String> set = new TreeSet<>();

        set.add("itheima");
        set.add("iteye");
        set.add("51cto");
        set.add("csdn");
        set.add("itpub");
        set.add("chinaunix");

        for (String s : set) {
            System.out.println(s);

        }
    }
}
